'****************************************************************************'
'                                                                            '
' Copyright (C) 2010 Muhammad alaa                                           '
'                                                                            '
' This program is free software; you can redistribute it and/or modify       '
' it under the terms of the GNU General Public License as published by       '
' the Free Software Foundation; either version 2 of the License, or          '
' (at your option) any later version.                                        '
'                                                                            '
' This program is distributed in the hope that it will be useful,            '
' but WITHOUT ANY WARRANTY; without even the implied warranty of             '
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              '
' GNU General Public License for more details.                               '
'                                                                            '
' You should have received a copy of the GNU General Public License along    '
' with this program; if not, write to the Free Software Foundation, Inc.,    '
' 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.                '
'                                                                            '
'****************************************************************************'

Namespace OLE

    <ComImport()> _
    <InterfaceType(ComInterfaceType.InterfaceIsIDispatch)> _
    <Guid(IID.OLE.IFontDisp)> _
    Public Interface IFontDisp
        <PreserveSig(), DispId(0)> Function get_Name(<Out(), MarshalAs(UnmanagedType.BStr)> ByRef pName As String) As <MarshalAs(UnmanagedType.Error)> Integer
        <PreserveSig(), DispId(0)> Function put_Name(<MarshalAs(UnmanagedType.BStr)> ByVal pName As String) As <MarshalAs(UnmanagedType.Error)> Integer

        <PreserveSig(), DispId(2)> Function get_Size(<Out()> ByRef pSize As Long) As <MarshalAs(UnmanagedType.Error)> Integer
        <PreserveSig(), DispId(2)> Function put_Size(ByVal pSize As Long) As <MarshalAs(UnmanagedType.Error)> Integer

        <PreserveSig(), DispId(3)> Function get_Bold(<Out(), MarshalAs(UnmanagedType.Bool)> ByRef pBold As Boolean) As <MarshalAs(UnmanagedType.Error)> Integer
        <PreserveSig(), DispId(3)> Function put_Bold(<MarshalAs(UnmanagedType.Bool)> ByVal pBold As Boolean) As <MarshalAs(UnmanagedType.Error)> Integer

        <PreserveSig(), DispId(4)> Function get_Italic(<Out(), MarshalAs(UnmanagedType.Bool)> ByRef pItalic As Boolean) As <MarshalAs(UnmanagedType.Error)> Integer
        <PreserveSig(), DispId(4)> Function put_Italic(<MarshalAs(UnmanagedType.Bool)> ByVal pItalic As Boolean) As <MarshalAs(UnmanagedType.Error)> Integer

        <PreserveSig(), DispId(5)> Function get_Underline(<Out(), MarshalAs(UnmanagedType.Bool)> ByRef pUnderline As Boolean) As <MarshalAs(UnmanagedType.Error)> Integer
        <PreserveSig(), DispId(5)> Function put_Underline(<MarshalAs(UnmanagedType.Bool)> ByVal pUnderline As Boolean) As <MarshalAs(UnmanagedType.Error)> Integer

        <PreserveSig(), DispId(6)> Function get_Strikethrough(<Out(), MarshalAs(UnmanagedType.Bool)> ByRef pStrikethrough As Boolean) As <MarshalAs(UnmanagedType.Error)> Integer
        <PreserveSig(), DispId(6)> Function put_Strikethrough(<MarshalAs(UnmanagedType.Bool)> ByVal pStrikethrough As Boolean) As <MarshalAs(UnmanagedType.Error)> Integer

        <PreserveSig(), DispId(7)> Function get_Weight(<Out()> ByRef pWeight As Short) As <MarshalAs(UnmanagedType.Error)> Integer
        <PreserveSig(), DispId(7)> Function put_Weight(ByVal pWeight As Short) As <MarshalAs(UnmanagedType.Error)> Integer

        <PreserveSig(), DispId(8)> Function get_Charset(<Out()> ByRef pCharset As Boolean) As <MarshalAs(UnmanagedType.Error)> Integer
        <PreserveSig(), DispId(8)> Function put_Charset(ByVal pCharset As Boolean) As <MarshalAs(UnmanagedType.Error)> Integer
    End Interface

End Namespace